package qmlt.learning.naivebayes;

import org.python.core.PyObject;
import org.python.util.PythonInterpreter;

public class NaiveBayesianClassifierFactory
{
    public static NaiveBayesianClassifier get()
    {
    	String className = "BasicNaiveBayesianClassifier";
        String importString = String.format("from %s import %s", className, className);
        PythonInterpreter interp = new PythonInterpreter();
        interp.exec(importString);

        PyObject theClass = interp.get(className);
        PyObject theObject = theClass.__call__();
        return (NaiveBayesianClassifier) theObject.__tojava__(NaiveBayesianClassifier.class);
    }
}
